package com.test.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.test.domain.TUser;
import com.test.mapper.TUserMapper;
import com.test.service.TUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: mengxiangzhong
 * @date: 2023/11/15 17:34
 * @TODO:
 **/
@Service
@Slf4j
public class TUserServiceImpl extends ServiceImpl<TUserMapper, TUser> implements TUserService {
    @Override
    @LcnTransaction
    @Transactional
    public Integer addOneUser(TUser tUser) {
        log.info("=====测试==================");
        return save(tUser)?1:0;
    }
}
